angular.module("driver").filter('status', function () {
  return function (status) {
  	var st;
  	switch (status) {
  		case 'connected':
  			st = ''
  			break;
  		case 'waiting':
  			st = '等待连接，请检查网络...'
  			break;
  		case 'connecting':
  			st = '正在连接...'
  			break;
  		case 'offline':
  			st = '离线'
  			break;
  		default:
  			st = ''
  	}
  	return st;
  	//return (status != 'connected') ? status : '';
  }
});